home *** CD-ROM | disk | FTP | other *** search
/ All for Cell Phones: Sony Ericsson / Sony-Ericsson 2004.iso / Java / Ghostrun / ghostrun.jar / h.class (.txt) < prev   
Encoding:
Java Class File  |  2002-04-10  |  911 b   |  57 lines

  1. import java.util.TimerTask;
  2. import javax.microedition.lcdui.Displayable;
  3.  
  4. // $FF: renamed from: h
  5. public class class_0 extends TimerTask {
  6.    // $FF: renamed from: a f
  7.    public f field_0;
  8.  
  9.    public class_0(f var1) {
  10.       this.field_0 = var1;
  11.       this.field_0.a8 = System.currentTimeMillis();
  12.    }
  13.  
  14.    public void run() {
  15.       switch (this.field_0.ar) {
  16.          case 1:
  17.          case 7:
  18.          case 8:
  19.             this.field_0.b();
  20.          case 2:
  21.          default:
  22.             break;
  23.          case 3:
  24.             if (System.currentTimeMillis() - this.field_0.a8 >= 1000L) {
  25.                this.field_0.ar = -1;
  26.                if (this.field_0.av >= 0) {
  27.                   this.field_0.commandAction(this.field_0.f, (Displayable)null);
  28.                }
  29.             }
  30.             break;
  31.          case 4:
  32.             if (System.currentTimeMillis() - this.field_0.a8 >= 1000L) {
  33.                this.field_0.ar = 1;
  34.                this.field_0.a8 = System.currentTimeMillis();
  35.             }
  36.             break;
  37.          case 5:
  38.             if (System.currentTimeMillis() - this.field_0.a8 >= 1000L) {
  39.                this.field_0.ar = -1;
  40.                this.field_0.commandAction(this.field_0.g, (Displayable)null);
  41.             }
  42.             break;
  43.          case 6:
  44.             if (System.currentTimeMillis() - this.field_0.a8 >= 200L) {
  45.                this.field_0.a8 = System.currentTimeMillis();
  46.                ++this.field_0.a2;
  47.                if (this.field_0.a2 < 3) {
  48.                   this.field_0.c();
  49.                } else {
  50.                   this.field_0.f();
  51.                }
  52.             }
  53.       }
  54.  
  55.    }
  56. }
  57.